package com.mfangsoft.zhuangjialong.article.service;

import com.mfangsoft.zhuangjialong.article.model.ArticleDetailModel;
import com.mfangsoft.zhuangjialong.article.model.ArticleEntity;
import com.mfangsoft.zhuangjialong.article.model.ArticleEvaluationEntity;
import com.mfangsoft.zhuangjialong.article.model.ArticleEvaluationModel;
import com.mfangsoft.zhuangjialong.common.model.Page;

public interface ServerArticleService {
	/**
	 * 获取文章列表
	 * @param page
	 * @return
	 */
	public Page<ArticleDetailModel> queryNews(Page<ArticleDetailModel> page);


	/**
	 * 新建文章
	 * @param param
	 * @return
	 */
	public boolean addArticle(ArticleEntity articleEntity);


	/**
	 * 根据文章id编辑文章
	 * @param articleId
	 * @return
	 */
	public boolean updateArticle(ArticleEntity articleEntity);


	/**
	 * 根据文章id删除文章，注意不是真删，只是将状态改为0
	 * @param articleId
	 * @return
	 */
	public boolean deleteArticleByArticleId(Long articleId);


	/**
	 * 根据文章id查询文章详情
	 * @param articleId
	 * @return
	 */
	public ArticleEntity queryarticledetails(Long articleId);
	
	/*
	* @description：获取文章图文详情
	* @param：param
	 */
	public ArticleDetailModel queryArticleDetails(ArticleDetailModel param);


	/**
	 * 查询评论列表
	 * @param param
	 * @return
	 */
	public Page<ArticleEvaluationModel> queryAppArticleEvaluationForPage(Page<ArticleEvaluationModel> param);


	/**
	 * 评价管理查询
	 * @param param
	 * @return
	 */
	public Page<ArticleEvaluationModel> queryevaluationManagement(Page<ArticleEvaluationModel> param);


	/**
	 * 通过评价id修改评价状态
	 * @param evaluationId
	 * @return
	 */
	public boolean updateEvaluationStateByEvaluationId(Long evaluationId,Long state);
	
}
